import { defineStore } from 'pinia'
export const useMenusStore = defineStore('userMenu', {
  state: () => {
    return {
      menus: [
        {
          id: 1,
          name: '首页',
          path: 'dashboard',
          routeName: 'dashboard',
        },
        {
          id: 2,
          name: '用户管理',
          routerName: 'users',
          routeName: 'users',
        },
        {
          id: 3,
          name: '角色管理',
          routerName: 'roles',
          routeName: 'roles',
        },
        {
          id: 4,
          name: '菜单管理',
          routerName: 'menus',
          routeName: 'menus',
        }
      ]
    }
  },
  actions: {
    setMenu(menu) {
      this.menu = menu
    }
  }
})